<?php
class Xigg_Plugin_YouTube_Main extends Xigg_Plugin
{
    function onHTMLPurifierInit(&$HTMLPurifier)
    {
        require_once dirname(__FILE__) . '/HTMLPurifierFilter.php';
        $filter =& new Xigg_Plugin_YouTube_HTMLPurifierFilter(
                     $this->_params['width'],
                     $this->_params['height'],
                     $this->_params['showRelatedVideos']);
        $HTMLPurifier->addFilter($filter);
    }
}